package com.tianqu.tms.dao;

import java.util.List;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.dto.UserAuthDto;

public interface UserAuthDao {

	/**
	 * 根据用户ID获得对应的RolID
	 * @param userId
	 * @return
	 * @throws TmsDaoException
	 */
	public List<UserAuthDto> getRolId(int userId)throws TmsDaoException;
	
	/**
	 * 
	 * 添加权限信息
	 */
	public void insertUserAuthInfo(int userId,int ucId) throws TmsDaoException;
	/**
	 * 根据user表主键ID删除role信息
	 */
	public void delUserAuthInfo(int userId) throws TmsDaoException;
	
	public void deleteAuth(int rId) throws TmsDaoException;
	public UserAuthDto getAuthInfoByRole(int userid,int roleid) throws TmsDaoException;
}
